home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_02_04 / 2n04014a < prev    next >
Text File  |  1991-02-09  |  879b  |  30 lines

  1. /*
  2.  *  VIDEO.H Copyright (C) 1990 by Mark R. Nelson
  3.  *
  4.  * This header file contains the structures, constants, and function
  5.  * prototypes necessary to use the display routines in VIDEO.C
  6.  */
  7. typedef unsigned char COORD;
  8.  
  9. typedef struct {
  10.             COORD first_row;
  11.             COORD height;
  12.             COORD first_col;
  13.             COORD width;
  14.             COORD cursor_row;
  15.             COORD cursor_col;
  16.            } WINDOW;
  17.  
  18. WINDOW *window_open( COORD row, COORD col, COORD width, COORD height );
  19. void window_printf( WINDOW *window ,char *format,... );
  20. void window_putc( WINDOW *window, char c );
  21. void window_select( WINDOW *window );
  22.  
  23. void scroll( WINDOW *window );
  24. void restore_screen( void );
  25. void initialize_screen( void );
  26. void set_cursor(COORD row, COORD col );
  27. void get_cursor( COORD *row, COORD *col );
  28. void draw_box( WINDOW *window );
  29.  
  30.